#include "qsort.h"

int compare_areas(const void* a, const void* b) {
	rectangle *rec_a = (rectangle *)a;
	rectangle *rec_b = (rectangle *)b;
	return rec_a->width * rec_a->height - rec_b->width * rec_b->height;
}

int compare_areas_desc(const void*a, const void* b) {
	return (compare_areas(b,a));
}

